%option noyywrap
%{
#include<stdio.h>
#include<stdlib.h>
#include<set>
#include<string>
#include<iostream>
using namespace std;


int count=0;
set<long long int> table;
%}
digit		[0-9]
number		^{digit}{9}
sum		{digit}+(.{digit}+)?
%%
{number}	{printf("201492144");count++;table.insert(atoi(yytext));}
"NAME"$		{printf("CPY");}						
{sum}	{long long int num=0;num=(long long int)(atof(yytext)*2+201492144);cout<<num;count++;table.insert(num);}
.		{ECHO;}
%%
int main()
{
yylex();
printf("出现次数:%d\t去重后次数:%d",count,table.size());	
return 0;
}

